3516dcb9eaa1dab0a3d30c3fb16f255e7c86dae4,app/src/main/java/com/felkertech/cumulustv/utils/ActivityUtils.java,ActivityUtils,editChannel,#Activity#String#,139
Before Change
new MaterialDialog.Builder(activity)
.title(activity.getString(R.string.plugin_not_installed_title,
jsonChannel.getPluginSource().getPackageName()))
.content(R.string.plugin_not_installed_question)
.positiveText(R.string.download_app)
.negativeText(R.string.open_in_another_plugin)
.callback(new MaterialDialog.ButtonCallback() {
@Override
public void onPositive(MaterialDialog dialog) {
super.onPositive(dialog);
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse("http://play.google.com/store/apps/details?id="
+ jsonChannel.getPluginSource().getPackageName()));
activity.startActivity(i);
}
@Override
public void onNegative(MaterialDialog dialog) {
super.onNegative(dialog);
openPluginPicker(false, channelUrl, activity);
}
}).show();
Toast.makeText(activity, activity.getString(R.string.toast_msg_pack_not_installed,
jsonChannel.getPluginSource().getPackageName()),
Toast.LENGTH_SHORT).show();
After Change
new AlertDialog.Builder(activity)
.setTitle(activity.getString(R.string.plugin_not_installed_title,
jsonChannel.getPluginSource().getPackageName()))
.setMessage(R.string.plugin_not_installed_question)
.setPositiveButton(R.string.download_app, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int which) {
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse("http://play.google.com/store/apps/details?id="
+ jsonChannel.getPluginSource().getPackageName()));
activity.startActivity(i);
}
})
.setNegativeButton(R.string.open_in_another_plugin, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
openPluginPicker(false, channelUrl, activity);